-- GENERATED SPELL FOR [Zealot Zath] --


function spell0_11348(pUnit, Event) --@Blind,n/a--
pUnit:FullCastSpellOnTarget(21060,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11348', 10318, 1)
end

function spell1_11348(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11348', 4267, 1)
end

function spell2_11348(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(15614,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11348', 6253, 1)
end

function spell3_11348(pUnit, Event) --@Resurrection,Self--
pUnit:FullCastSpellOnTarget(24173,pUnit)
pUnit:RegisterEvent('Sorts_11348', 2000, 1)
end

function spell4_11348(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(15581,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11348', 607, 1)
end

function Sorts_11348(pUnit, Event)
local choix_sorts_11348 = math.random(0, 4)
if choix_sorts_11348 == 0 then
pUnit:RegisterEvent('spell0_11348', 1, 1)
end
if choix_sorts_11348 == 1 then
pUnit:RegisterEvent('spell1_11348', 1, 1)
end
if choix_sorts_11348 == 2 then
pUnit:RegisterEvent('spell2_11348', 1, 1)
end
if choix_sorts_11348 == 3 then
pUnit:RegisterEvent('spell3_11348', 1, 1)
end
if choix_sorts_11348 == 4 then
pUnit:RegisterEvent('spell4_11348', 1, 1)
end
end

function mob11348_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11348', math.random(1500, 3000), 1)
end

function mob11348_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11348_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11348_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11348, 1, 'mob11348_Action')
RegisterUnitEvent(11348, 2, 'mob11348_Leave')
RegisterUnitEvent(11348, 3, 'mob11348_Kill')
RegisterUnitEvent(11348, 4, 'mob11348_Die')
